package com.witype.timeline;

import com.witype.timeline.line.DueLine;

/**
 * Created by WiType on 2017/4/16.
 * Email witype716@gmail.com
 * Desc:
 */

public class Sprite implements DueLine {

    private long dueTimestamp;

    public Sprite(int minFromNow) {
        this.dueTimestamp = System.currentTimeMillis() + minFromNow * 1000;
    }

    @Override
    public boolean isDue() {
        return System.currentTimeMillis() > dueTimestamp;
    }
}
